package Thread.TurtleRabbit;

/**
 * @author: lqh
 * @description: impl
 * @program: Demo
 * @create: 2018-04-13 11:30
 **/
public class CalltobackImpl implements Animal.Calltoback{

    Animal animal;

    public CalltobackImpl(Animal animal) {
        this.animal = animal;
    }

    @Override
    public void win() {
        animal.stop();
    }
}
